<?php

namespace AdminPanel\DashboardBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * MainSlider
 *
 * @ORM\Table(name="main_slider")
 * @ORM\Entity
 */
class MainSlider
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="image", type="string", length=512, nullable=true)
     */
    private $image;

    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=128, nullable=true)
     */
    private $title;

    /**
     * @var string
     *
     * @ORM\Column(name="url", type="text", nullable=true)
     */
    private $url;

    /**
     * @var string
     *
     * @ORM\Column(name="slider_type", type="string", length=20, nullable=false)
     */
    private $sliderType;

    /**
     * @var string
     *
     * @ORM\Column(name="flash_file", type="text", nullable=true)
     */
    private $flashFile;

    /**
     * @var integer
     *
     * @ORM\Column(name="has_text", type="integer", nullable=false)
     */
    private $hasText;

    /**
     * @var string
     *
     * @ORM\Column(name="text_title", type="string", length=128, nullable=true)
     */
    private $textTitle;

    /**
     * @var string
     *
     * @ORM\Column(name="text_body", type="string", length=1024, nullable=true)
     */
    private $textBody;

    /**
     * @var string
     *
     * @ORM\Column(name="text_url", type="string", length=512, nullable=true)
     */
    private $textUrl;

    /**
     * @var integer
     *
     * @ORM\Column(name="sort_order", type="integer", nullable=true)
     */
    private $sortOrder;

    /**
     * @var integer
     *
     * @ORM\Column(name="is_active", type="integer", nullable=false)
     */
    private $isActive;

    /**
     * @var integer
     *
     * @ORM\Column(name="is_publish", type="integer", nullable=false)
     */
    private $isPublish;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", nullable=true)
     */
    private $createdAt;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set image
     *
     * @param string $image
     * @return MainSlider
     */
    public function setImage($image)
    {
        $this->image = $image;
    
        return $this;
    }

    /**
     * Get image
     *
     * @return string 
     */
    public function getImage()
    {
        return $this->image;
    }

    /**
     * Set title
     *
     * @param string $title
     * @return MainSlider
     */
    public function setTitle($title)
    {
        $this->title = $title;
    
        return $this;
    }

    /**
     * Get title
     *
     * @return string 
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set url
     *
     * @param string $url
     * @return MainSlider
     */
    public function setUrl($url)
    {
        $this->url = $url;
    
        return $this;
    }

    /**
     * Get url
     *
     * @return string 
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * Set sliderType
     *
     * @param string $sliderType
     * @return MainSlider
     */
    public function setSliderType($sliderType)
    {
        $this->sliderType = $sliderType;
    
        return $this;
    }

    /**
     * Get sliderType
     *
     * @return string 
     */
    public function getSliderType()
    {
        return $this->sliderType;
    }

    /**
     * Set flashFile
     *
     * @param string $flashFile
     * @return MainSlider
     */
    public function setFlashFile($flashFile)
    {
        $this->flashFile = $flashFile;
    
        return $this;
    }

    /**
     * Get flashFile
     *
     * @return string 
     */
    public function getFlashFile()
    {
        return $this->flashFile;
    }

    /**
     * Set hasText
     *
     * @param integer $hasText
     * @return MainSlider
     */
    public function setHasText($hasText)
    {
        $this->hasText = $hasText;
    
        return $this;
    }

    /**
     * Get hasText
     *
     * @return integer 
     */
    public function getHasText()
    {
        return $this->hasText;
    }

    /**
     * Set textTitle
     *
     * @param string $textTitle
     * @return MainSlider
     */
    public function setTextTitle($textTitle)
    {
        $this->textTitle = $textTitle;
    
        return $this;
    }

    /**
     * Get textTitle
     *
     * @return string 
     */
    public function getTextTitle()
    {
        return $this->textTitle;
    }

    /**
     * Set textBody
     *
     * @param string $textBody
     * @return MainSlider
     */
    public function setTextBody($textBody)
    {
        $this->textBody = $textBody;
    
        return $this;
    }

    /**
     * Get textBody
     *
     * @return string 
     */
    public function getTextBody()
    {
        return $this->textBody;
    }

    /**
     * Set textUrl
     *
     * @param string $textUrl
     * @return MainSlider
     */
    public function setTextUrl($textUrl)
    {
        $this->textUrl = $textUrl;
    
        return $this;
    }

    /**
     * Get textUrl
     *
     * @return string 
     */
    public function getTextUrl()
    {
        return $this->textUrl;
    }

    /**
     * Set sortOrder
     *
     * @param integer $sortOrder
     * @return MainSlider
     */
    public function setSortOrder($sortOrder)
    {
        $this->sortOrder = $sortOrder;
    
        return $this;
    }

    /**
     * Get sortOrder
     *
     * @return integer 
     */
    public function getSortOrder()
    {
        return $this->sortOrder;
    }

    /**
     * Set isActive
     *
     * @param integer $isActive
     * @return MainSlider
     */
    public function setIsActive($isActive)
    {
        $this->isActive = $isActive;
    
        return $this;
    }

    /**
     * Get isActive
     *
     * @return integer 
     */
    public function getIsActive()
    {
        return $this->isActive;
    }

    /**
     * Set isPublish
     *
     * @param integer $isPublish
     * @return MainSlider
     */
    public function setIsPublish($isPublish)
    {
        $this->isPublish = $isPublish;
    
        return $this;
    }

    /**
     * Get isPublish
     *
     * @return integer 
     */
    public function getIsPublish()
    {
        return $this->isPublish;
    }

    /**
     * Set createdAt
     *
     * @param \DateTime $createdAt
     * @return MainSlider
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;
    
        return $this;
    }

    /**
     * Get createdAt
     *
     * @return \DateTime 
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }
}